package com.gjxblog.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author gjx
 * @version v1.0
 * @Description 声明式配置使用
 * @date 2019/7/5 9:58
 */
@Configuration
public class RabbitMQBean {

    @Bean
    public Queue queue001(){
        return new Queue("queue001",false);
    }

    @Bean
    public Queue queue002(){
        return new Queue("queue002",false);
    }
}
